/*
 * @Author: jianfanfan 1217572833@qq.com
 * @Date: 2025-03-15 16:06:21
 * @LastEditors: jianfanfan 1217572833@qq.com
 * @LastEditTime: 2025-04-09 16:16:44
 * @FilePath: \guozaoke\src\app.controller.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { Controller, Get } from '@nestjs/common';
import { AppService } from './app.service';

@Controller()
export class AppController {
  constructor(private readonly appService: AppService) {}

  @Get()
  getHello(): string {
    console.log('hello world');
    return this.appService.getHello();
  }

  @Get('db-config')
  getDatabaseConfig() {
    return this.appService.getDatabaseConfig();
  }

  @Get('port')
  getPort() {
    console.log('获取了port');
    return this.appService.getPort();
  }
}
